package cn.readjava.service.impl;

import cn.readjava.bean.Website;
import cn.readjava.dao.WebsiteDao;
import cn.readjava.service.WebsiteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WebsiteServiceImpl implements WebsiteService {

    @Resource
    private WebsiteDao websiteDao;

    @Override
    public Website getOne(Long id) {
        return websiteDao.getOne(id);
    }

    @Override
    public List<Website> findAll() {
        return websiteDao.findAll();
    }
}
